var path = require('path');

module.exports = {
    entry: './app.js',
    output: {
        path: path.join(__dirname, '/dist'),
        filename: 'bundle.js'
    },
    resolve: {
        extensions: ['', '.js', '.jsx']
    },
    module: {
        loaders: [
            {
                test: /\.js|jsx$/, loader: 'babel', query: {
                    presets: ['react', 'es2015']
                }
            }, {
                test: require.resolve('jquery'),
                loader: "expose?jQuery"
            }, {
                test: /\.css$/, // Only .css files
                loader: 'style!css' // Run both loaders
            }
        ]
    }
}